<template>
  <view>
		我的
    <wd-message-box></wd-message-box>
    <wd-button @click="alert">亲爱的</wd-button>
  </view>
</template>

<script setup lang="ts">
import {onMounted} from 'vue';
import { useMessage } from '../../../node_modules/wot-design-uni';
const message = useMessage()

function alert() {
  message.alert(store.name)
}
onMounted(()=>{
  store.name='小曹'
  console.log(store.name)
})
import {useStore} from "@/pinia";
const store = useStore();

</script>


<style scoped lang="scss">

</style>
